
import { JsonUtil } from "db://app-game/core/utils/JsonUtil";

export class TableLevelUILayout {
    static TableName: string = "LevelUILayout";

    public data: any;

    init(id: number) {
        var table = JsonUtil.get(TableLevelUILayout.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 名称 */
    get name(): string {
        return this.data.name;
    }
    /** 移动摇杆 */
    get moveJoysitick(): any {
        return this.data.moveJoysitick;
    }
    /** 攻击摇杆 */
    get attackJoysitick(): any {
        return this.data.attackJoysitick;
    }
    /** 技能1 */
    get skillOneButton(): any {
        return this.data.skillOneButton;
    }
    /** 技能2 */
    get skillTwoButton(): any {
        return this.data.skillTwoButton;
    }
    /** 武器1 */
    get weaponOne(): any {
        return this.data.weaponOne;
    }
    /** 武器2 */
    get weaponTwo(): any {
        return this.data.weaponTwo;
    }
}
    